﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Client
{
    public partial class SanPhamControl : UserControl
    {
        public SanPhamControl()
        {
            InitializeComponent();
        }
        public CProduct sanpham;
        private void SanPhamControl_Load(object sender, EventArgs e)
        {

        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            ThongTin tt = new ThongTin();
            tt.sanpham = sanpham;
            tt.ShowDialog();
        }

        private void btnban_Click(object sender, EventArgs e)
        {
         
            //Goi Form Ban Hang
            BanHang bh = new BanHang();
            bh.sanpham = sanpham;
            bh.ShowDialog();
    
        }
    }
}
